Skip to content

pm-stack NixOS module: fold the fleet-feed collector in (code#3363) - #3368

Merged
dezren39 merged 1 commit into
mainfrom
pm-collector-nix-module
Nov 1, 2026
Merged

dezren39 merged 1 commit into
mainfrom
pm-collector-nix-module

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Declares the fleet-feed collector service + timer in nixos/services/pm-stack/default.nix, replacing the hand-written units installed when the collector moved to the laptop on 2026-10-31. Environment mirrors the hand unit exactly (paths via the module's home/repo/aggState variables); the ExecStartPre password script stays operator-managed in ~/.local/bin as it was. Parse-checked (nix-instantiate --parse). Closes the wiring gap in code#3363; the switch itself applies it.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

The collector moved from the sandbox to the laptop on 2026-10-31 as
hand-written units (~/.config/systemd/user/fleet-feed-collector.service
+ .timer). Declare the service and timer in the pm-stack module like
every other component, with the same environment the hand unit carries,
so the next nixos-rebuild switch owns its lifecycle and home-manager
retires the hand files. The ExecStartPre password-extraction script
stays operator-managed in ~/.local/bin, as the hand unit had it.
@dezren39
dezren39 requested a review from a team as a code owner November 1, 2026 06:09
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d8e14b79-9789-4d88-b5f2-9f885a8f29d7
Commits

Reviewing files that changed from the base of the PR and between ca2471a and 4a23a44.

Files selected for processing: 1
  • nixos/services/pm-stack/default.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 5c172f3 into main Nov 1, 2026
@dezren39
dezren39 deleted the pm-collector-nix-module branch November 1, 2026 06:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T06:10:28.586649Z 4a23a44 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

dezren39 added a commit that referenced this pull request Nov 1, 2026
The phantom writer blanking /aa is identified: the sandbox host still
runs fleet-feed-collector.timer (systemd, system level), installed from
the stale ~/git/pm-feed clone (HEAD 2026-10-29, pre-#3349) and restored
on every sandbox boot by ~/tools/init.sh. Its collector defaults
SUPABASE_PROJECT_REF to the retired muse-dev project
(nltgxorqwxhgfzseiirt) while the bws management token
(supabase.access-token-muse-cli) is muse-dev2-scoped, so its AA query
fails HTTP 403 (verified directly: same token + retired ref = 403
"does not have the necessary privileges"; same token + muse-dev2 ref
keihfchslgjetkmnmzra = 201 with the current ainventory batch). Every
~5 min it scp-pushed its AA-absent, session-poor feed over the laptop
collector's good feed (~/pm-stack/aggregator symlinks into the
aggregator state dir), racing the laptop collector that has owned the
feed since the 2026-10-31 move (#3363/#3368).

The collector lives on the laptop now (pm-stack NixOS module), so the
sandbox-side units are deleted, not updated: remove
systemd/fleet-feed-collector.{service,timer} and
scripts/install-collector-units.sh, mark push-fleet-feed.sh
manual-only, and correct the stale "sandbox collector / pushed feed"
descriptions in README, src/feed.ts, src/topology.ts and
src/watchdog.ts. The charges confirm-after-delivery contract stays:
push-fleet-feed.sh + confirm-charges-surfaced.ts are untouched.

Tests: bun test in pm-stack/aggregator — 870 pass, 2 fail, identical
on pristine origin/main (pre-existing slice-3 routes failure).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant